package com.developer.platform.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.developer.platform.infrastructure.enums.StatusEnum;
import com.veeker.mybatis.basic.BaseEntity;
import java.util.Date;

/**
 * @author ：qiaoliang
 * @date ：2021-01-07
 */
@TableName(value = "sys_log",autoResultMap = true)
public class Log extends BaseEntity<Long,Long> {
  /**请求参数**/
  private String inputParam;
  /**返回参数**/
  private String outParam;
  /**请求方法**/
  private String methodName;
  /**方法描述**/
  private String discription;
  /**请求方式**/
  private String method;
  /**请求Url**/
  private String url;
  /**功能模块**/
  private String businessType;
  /**操作人类别**/
  private String operatorType;
  /**状态**/
  private StatusEnum status;
  /**异常内容**/
  private String errorContent;
  /**开始时间**/
  private Date startTime;
  /**结束时间**/
  private Date endTime;

  public Log() {
  }

  public Log(Long createBy, StatusEnum status) {
    super(null, createBy, null, null, null, null);
    this.status = status;
  }

  public Log(Long createBy, StatusEnum status, Date endTime, String errorContent) {
    super(null, createBy, null, null, null, null);
    this.status = status;
    this.endTime = endTime;
    this.errorContent = errorContent;
  }

  public String getInputParam() {
    return inputParam;
  }

  public void setInputParam(String inputParam) {
    this.inputParam = inputParam;
  }

  public String getOutParam() {
    return outParam;
  }

  public void setOutParam(String outParam) {
    this.outParam = outParam;
  }

  public String getMethodName() {
    return methodName;
  }

  public void setMethodName(String methodName) {
    this.methodName = methodName;
  }

  public String getDiscription() {
    return discription;
  }

  public void setDiscription(String discription) {
    this.discription = discription;
  }

  public String getMethod() {
    return method;
  }

  public void setMethod(String method) {
    this.method = method;
  }

  public String getUrl() {
    return url;
  }

  public void setUrl(String url) {
    this.url = url;
  }

  public String getBusinessType() {
    return businessType;
  }

  public void setBusinessType(String businessType) {
    this.businessType = businessType;
  }

  public String getOperatorType() {
    return operatorType;
  }

  public void setOperatorType(String operatorType) {
    this.operatorType = operatorType;
  }

  public StatusEnum getStatus() {
    return status;
  }

  public void setStatus(StatusEnum status) {
    this.status = status;
  }

  public String getErrorContent() {
    return errorContent;
  }

  public void setErrorContent(String errorContent) {
    this.errorContent = errorContent;
  }

  public Date getStartTime() {
    return startTime;
  }

  public void setStartTime(Date startTime) {
    this.startTime = startTime;
  }

  public Date getEndTime() {
    return endTime;
  }

  public void setEndTime(Date endTime) {
    this.endTime = endTime;
  }
}
